# coding=utf-8
# @Time    : 2018/3/2 14:35
# @Author  : Jiangxu
# @File    : 错误调试.py
# @Software: PyCharm

import logging
logging.basicConfig(level=logging.INFO)

try:
    print 'try...'
    r = 10 / 0
    print 'result:', r
except ZeroDivisionError, e:
    print 'except:', e
finally:
    print 'finally...'
print 'END'



s = '0'
n = int(s)
logging.info('n = %d' % n)
print 10 / n